CFLAGS = -I/usr/include -Icpp -I.
LDFLAGS = -L/usr/lib `sdl-config --cflags --libs` -lSDL_image -lGL

all: basic_display surfaces_image simple_mouse simple_keyboard basic_sdl_opengl simple_multithreading

basic_display: basic_display.o
basic_display.o: basic_display.c

surfaces_image: surfaces_image.o
surfaces_image.o: surfaces_image.c

simple_mouse: simple_mouse.o
simple_mouse.o: simple_mouse.c

simple_keyboard: simple_keyboard.o
simple_keyboard.o: simple_keyboard.c

basic_sdl_opengl: basic_sdl_opengl.o
basic_sdl_opengl.o: basic_sdl_opengl.c

simple_multithreading: simple_multithreading.o
simple_multithreading.o: simple_multithreading.c

clean:
	@echo Cleaning up...
	rm -f *~ *.o basic_display surfaces_image simple_mouse simple_keyboard basic_sdl_opengl simple_multithreading
	@echo Done.
